package cn.wolfcode.p2p.base.domain;

import cn.wolfcode.p2p.util.MD5;
import lombok.Getter;
import lombok.Setter;
/**
 * 用户登录模型
*/
@Setter@Getter
public class LoginInfo {

    public static final Integer STATE_NORMAL = 0; //正常状态
    public static final Integer STATE_LOCK = 1; //锁定状态
    public static final Integer USERTYPE_WEB = 0; //前台登录类型
    public static final Integer USERTYPE_MGR = 1; //后台登录类型

    private Long id; //用户ID

    private String username; //用户名

    private String password; //用户密码

    private Integer state = STATE_NORMAL; //用户状态,默认正常

    private Integer userType = USERTYPE_WEB; //用户类型,来判断前台还是后台登录

}